/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* 背景飞机图片 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100"><path d="M20 50 L40 30 L60 50 L80 40 L100 50 L120 45 L140 50 L160 48 L180 50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="150" cy="50" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 300px 150px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 文件上传区域 */
.upload-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
}

.section-title .info-icon {
  width: 20px;
  height: 20px;
  background: #4a9eff;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.upload-zone {
  border: 2px dashed #4a9eff;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  background: rgba(74, 158, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: #66b3ff;
  background: rgba(74, 158, 255, 0.1);
}

.upload-icon {
  font-size: 48px;
  color: #4a9eff;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: #b0b0b0;
  opacity: 0.8;
}

/* 上传操作区域 */
.upload-actions {
  margin-top: 20px;
  text-align: center;
}

.selected-files-info {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.upload-btn {
  background: linear-gradient(135deg, #4a9eff 0%, #66b3ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.upload-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #66b3ff 0%, #4a9eff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.upload-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
}

.upload-btn:disabled {
  background: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.upload-btn span {
  font-size: 18px;
}

/* 上传进度条 */
.upload-progress {
  margin-top: 15px;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a9eff 0%, #66b3ff 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: #e0e0e0;
  text-align: center;
}

/* 主要内容区域 */
.main-content {
  display: block;
  margin-bottom: 30px;
}

/* 标签信息列表 */
.tag-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-modify-btn {
  background: #4a9eff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.batch-modify-btn:hover {
  background: #66b3ff;
}

.batch-import-btn {
  background: #28a745;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.batch-import-btn:hover {
  background: #34ce57;
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.data-table th,
.data-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.data-table td {
  font-size: 13px;
  color: #e0e0e0;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Element Plus checkbox 样式调整 */
.data-table .el-checkbox {
  margin: 0;
}

.data-table .el-checkbox__input {
  vertical-align: middle;
}

.data-table .el-checkbox__inner {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  width: 16px;
  height: 16px;
}

.data-table .el-checkbox__inner:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.data-table .el-checkbox.is-checked .el-checkbox__inner {
  background-color: #409eff;
  border-color: #409eff;
}

.data-table .el-checkbox.is-checked .el-checkbox__inner::after {
  border-color: #ffffff;
  width: 4px;
  height: 8px;
  left: 5px;
  top: 1px;
}

/* Element Plus checkbox disabled 状态样式 */
.data-table .el-checkbox.is-disabled .el-checkbox__inner {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.data-table .el-checkbox.is-disabled .el-checkbox__inner:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.data-table .el-checkbox.is-disabled.is-checked .el-checkbox__inner {
  background-color: rgba(64, 158, 255, 0.3);
  border-color: rgba(64, 158, 255, 0.3);
}

.data-table .el-checkbox.is-disabled.is-checked .el-checkbox__inner::after {
  border-color: rgba(255, 255, 255, 0.5);
}

.file-name {
  font-family: "Courier New", monospace;
  color: #4a9eff;
}

.tag-info-link,
.import-link {
  color: #4a9eff;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}

.tag-info-link:hover,
.import-link:hover {
  text-decoration: underline;
}

.import-link {
  color: #28a745;
}

/* 分页控件 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 15px;
}

.pagination-info {
  font-size: 14px;
  color: #e0e0e0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-btn {
  background: #4a9eff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-btn:hover {
  background: #66b3ff;
}

.page-btn.active {
  background: #2a5298;
}

.page-size-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 6px 8px;
  color: white;
  font-size: 14px;
}

/* 全局滚动条样式 */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 158, 255, 0.8);
}

*::-webkit-scrollbar-thumb:active {
  background: rgba(74, 158, 255, 1);
}

/* Firefox 全局滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.6) rgba(255, 255, 255, 0.1);
}

/* 标签页样式 - 与主题保持一致 */
.el-tabs--border-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.el-tabs--border-card > .el-tabs__header {
  margin: 0 0 15px 0;
  border-bottom: 1px solid rgba(74, 158, 255, 0.3);
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 8px 8px 0 0;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-start;
  padding: 0 20px;
}

.el-tabs--border-card > .el-tabs__header .el-tabs__nav {
  border: none;
  display: flex;
  justify-content: flex-start;
  width: auto;
}

.el-tabs--border-card > .el-tabs__header .el-tabs__item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  transition: all 0.3s ease;
  font-size: 16px;
  padding: 12px 20px;
  backdrop-filter: blur(5px);
}

.el-tabs--border-card > .el-tabs__header .el-tabs__item:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.5);
}

.el-tabs--border-card .el-tabs__content {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  backdrop-filter: blur(10px);
  padding: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .upload-section,
  .tag-info {
    padding: 20px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 4px;
  }

  /* 移动端滚动条更细 */
  *::-webkit-scrollbar {
    width: 4px;
  }

  /* 标签页徽章样式 */
  .tab-badge {
    margin-left: 8px;
  }

  .tab-badge .el-badge__content {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
  }

  /* 异常状态样式 */
  .error-status {
    color: #f56c6c;
    font-weight: bold;
    margin-left: 8px;
  }

  /*标签页内容区域样式*/
  .el-tabs__content {
    padding: 0;
  }

  /* 移动端标签页样式优化 */
  .el-tabs--border-card > .el-tabs__header {
    padding: 0 10px;
  }

  .el-tabs--border-card > .el-tabs__header .el-tabs__item {
    padding: 8px 12px;
    font-size: 14px;
    margin-right: 2px;
  }

  .el-tabs--border-card .el-tabs__content {
    border-radius: 0 0 6px 6px;
  }
}
